﻿/**
 * @des 根据不同的会议模式来进行初始化会议室布局
 *      大会模式的布局为：两侧共六个视频窗口，中间为发言席，左下为本地视频，下面为发言区．
 *      讨论会模式的而已为：上面为所有的视频窗口，左下为本地视频，下面为发言区．
 */
var mcArray:Array = new Array();
var rowN:Number = 5;

function initLayout() {
	if (currentInfo.data.meetingMode == "大会模式") {
		var index = mcArray.length;
		// 创建页码显示
		mcArray[index++] = this.createTextField("lPage", this.getNextHighestDepth(), 129, 101, 41, 18);
		mcArray[index++] = this.createTextField("rPage", this.getNextHighestDepth(), 929, 101, 41, 18);
		
		// 创建边框线
		mcArray[index++] = this.attachMovie("listBorder", "lb", this.getNextHighestDepth(), { _x: 1, _y: 100 });
		mcArray[index++] = this.attachMovie("listBorder", "rb", this.getNextHighestDepth(), { _x: 800, _y: 100 });
		
		// 创建翻页按钮
		mcArray[index++] = this.attachMovie("previous", "lp", this.getNextHighestDepth(), { _x: 177, _y: 120, _alpha: 50 });
		mcArray[index++] = this.attachMovie("next", "ln", this.getNextHighestDepth(), { _x: 177, _y: 480, _alpha: 50 });
		mcArray[index++] = this.attachMovie("previous", "rp", this.getNextHighestDepth(), { _x: 978, _y: 120, _alpha: 50 });
		mcArray[index++] = this.attachMovie("next", "rn", this.getNextHighestDepth(), { _x: 978, _y: 480, _alpha: 50 });
		
		// 创建发言席
		mcArray[index++] = this.attachMovie("bwin", "bw", this.getNextHighestDepth(), { _x: 200, _y: 100, _width: 600, _height: 410 });
	} else {
		var index = mcArray.length;
		
		// 创建页码显示
		mcArray[index++] = this.createTextField("cPage", this.getNextHighestDepth(), 929, 101, 41, 18);
		
		// 创建边框线
		mcArray[index++] = this.attachMovie("listBorder", "cb", this.getNextHighestDepth(), { _x: 1, _y: 100, _width: 1000, _height: 410 });
		
		// 创建翻页按钮
		mcArray[index++] = this.attachMovie("previous", "cp", this.getNextHighestDepth(), { _x: 968, _y: 120, _alpha: 50 });
		mcArray[index++] = this.attachMovie("next", "cn", this.getNextHighestDepth(), { _x: 968, _y: 480, _alpha:50 });
	}
}

initLayout();